﻿using System.Collections.Generic;
using Rodunu.Movies.Services.Models.Netflix.Attributes;

namespace Rodunu.Movies.Services.Models.Netflix
{
    public class RentalHistory
    {
        private List<RentalHistoryItem> _items = new List<RentalHistoryItem>();

        [XPath("/rental_history/number_of_results")]
        public int NumberOfResults { get; set; }

        [XPath("/rental_history/start_index")]
        public int StartIndex { get; set; }

        [XPath("/rental_history/results_per_page")]
        public int ResultsPerPage { get; set; }

        [XPath("/rental_history/rental_history_item")]
        public List<RentalHistoryItem> Items
        {
            get { return _items; }
            set { _items = value; }
        }
    }
}
